﻿using AutoMapper;
using B.S.GridManager.Api.Write.Application.Command.LogicGrid;
using B.S.GridManager.Api.Write.Application.Command.PhsicalGrid;
using B.S.GridManger.Domain.Entities;

namespace B.S.GridManager.Api.Write
{
    public class AutoProFile : Profile
    {
        /// <summary>
        /// 在构造函数里添加映射配置
        /// </summary>
        public AutoProFile()
        {
            CreateMap<PhysicalGridModel,CreatePhysicalGridCommand>().ReverseMap();
            CreateMap<PhysicalGridModel,UpdatePhsicalGridCommand>().ReverseMap();
            CreateMap<LogicGridModel, CreateLogicCommand>().ReverseMap();// -> 
            CreateMap<LogicGridModel, UpdateLogicCommand>().ReverseMap();// -> 
            CreateMap<LogicGridModel, DelLogicCommand>().ReverseMap();// -> 

        }
    }
}
